﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace DbDiploma.Entities
{
    public class LikeEntity
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int LikeId { get; set; }

        public virtual UserEntity User { get; set; }
        public virtual EventEntity Event { get; set; }

        [Required]
        [DataType(DataType.DateTime)]
        public DateTime Liked { get; set; }
    }
}